package com.jingdong.service.address.impl;


import com.jingdong.dao.address.impl.ProvinceDaoImpl;
import com.jingdong.model.Province;
import com.jingdong.service.address.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceDaoImpl provinceDao;

    public List<Province> getProvinceList() {
        return provinceDao.getProvinceList();
    }

    public Province getProvinceById(int id) {
        return provinceDao.getProvinceById(id);
    }

    public int save(Province province) {
        return provinceDao.save(province);
    }

    public Province getProvinceForLikeByName(String provinceName) {
        return provinceDao.getProvinceForLikeByName(provinceName);
    }
}
